Hypvector 0.1.1#66
Merged
Merged
Conversation
Wrap the raw HTTP-backed AsyncBuffer rather than the cached layer so the stats bar reports actual network fetches (not cache hits). Adds two new metrics that surface the per-query bottleneck: net wait: summed time across all in-flight slice() calls max concurrent: peak in-flight requests (confirms h3 parallelism) The previous counter wrapped the cached buffer, so cache hits were counted as fetches and the numbers were inflated 2x.
Bump hypvector dep to 0.1.1 and call prefetchBinary at page load so phase-1 Hamming scans run from memory. Cuts ~30 fetches per query and significantly tightens p90 over the CloudFront/WAN cold path. The 7.5 MB binary column download happens once during the 'loading vector index...' status, then every subsequent query skips its binary parquet fetches entirely.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
prefetchBinaryto pull the ~7.5 MB binary column into RAM at load, so every query skips phase-1 fetchescachedAsyncBufferso counters reflect real network reads, not cache hits